package com.um.jdy.platform.shop.entity.dto;

import com.um.springboot.starter.orm.params.PageDTO;
import com.um.springboot.starter.orm.params.PageParams;
import lombok.Data;

@Data
public class GoodsCategoryPageDTO extends PageDTO {

    String shopGoodsCategoryParentId;

    String name;

    @Override
    public PageParams toPageParams() {
        PageParams pageParams = toPageParams(
                new String[]{"shopGoodsCategoryParentId", "name"},
                new String[]{"shop_goods_category_parent_id", "name"});
        pageParams.getCondition().put("orderby","sort_no ASC");
        return  pageParams;
    }
}
